﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 组合模式
{
    public abstract  class AbstractDomain
    {

        public string Name { get; set; }

        public double Percent { get; set; }


        /// <summary>
        /// 安全模式
        /// </summary>

        public abstract void Commission(double total);

        //透明模式

        public abstract void AddChild(Domain domainChild);
    }
}
